package evolution.changelog;

import java.util.ArrayList;
import java.util.List;

public class ChangeLogEntry
{
	class Header
	{
		String field;
		String value;

		Header(String field, String value)
		{
			this.field = field;
			this.value = value;
		}
	}

	List<Header> headers = new ArrayList<Header>();

	public void addHeader(String field, String value)
	{
		headers.add(new Header(field, value));
	}

	public String getFieldValue(String field)
	{
		for (Header header : headers)
		{
			if (field.equals(header.field))
			{
				return header.value;
			}
		}
		return null;
	}

}
